package com.example.administrator.nl.util;

import android.content.Context;
import android.widget.Toast;

public class ToastUtil {
    public static ToastUtil toastUtil = null;
    public static Context context;

    public static void init(Context context) {
        if (null != toastUtil) {
            toastUtil = new ToastUtil();
        }
        toastUtil.context = context;
    }

    public static void ToastShort(String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }

    public static void ToastLong(String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
    }

}
